package com.heima.homeservicemanagementsystem.openfeign;

import com.heima.homeservicemanagementsystem.entity.GithubInfo;
import com.heima.homeservicemanagementsystem.entity.WxRTVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description
 * @Author jcf
 * @Date 2025/3/27
 */

@FeignClient(name = "wxlogin", url = "https://api.weixin.qq.com")
public interface WxClient {
    @GetMapping(value = "/sns/jscode2session")
    String getSessionKey(@RequestParam("appid") String appId,
                         @RequestParam("secret") String appSecret,
                         @RequestParam("js_code") String code,
                         @RequestParam("grant_type") String grantType);
}
